﻿@{
    ViewBag.Title = "Bill";
}
<h2>Bill</h2>
@if (!ViewData.ModelState.IsValid)
{
    <div>
        @Html.ValidationSummary(false)
    </div>
}
else
{
    <div>Paid</div>
    <table>
        <tr>
            <td>Bill Number: </td>
            <td>@ViewBag.Payment.TransferId</td>
        </tr>
        <tr>
            <td>Card Number:</td>
            <td>@ViewBag.Payment.CardNumber</td>
        </tr>
        <tr>
            <td>Amount: </td>
            <td>@ViewBag.Payment.Amount</td>
        </tr>
        <tr>
            <td>Currency: </td>
            <td>@ViewBag.Payment.Currency</td>
        </tr>
        <tr>
            <td>
                @Html.ActionLink("Get Bill", "GetBill", "Bill", new { transferId = ViewBag.Payment.TransferId }, null)
            </td>
            <td>
                @Html.ActionLink("Home", "Index", "Home")
            </td>
        </tr>
    </table>
   
}
